<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" 	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"     		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-language" content="en" />
    <meta name="robots" content="all,follow" />

    <meta name="author" lang="en" content="All: Your name [www.url.com]; e-mail: info@url.com" />
    <meta name="copyright" lang="en" content="Webimg: Nuvio [www.nuvio.cz]; e-mail: ahoj@nuvio.cz" />

    <meta name="description" content="..." />
    <meta name="keywords" content="..." />

    <link rel="stylesheet" media="screen,projection" type="text/css" href="css/reset.css" />
    <link rel="stylesheet" media="screen,projection" type="text/css" href="css/main.css" />
    <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="css/main-msie.css" /><![endif]-->
    <link rel="stylesheet" media="screen,projection" type="text/css" href="css/style.css" />
    <link rel="stylesheet" media="print" type="text/css" href="css/print.css" />

    <title>Batalla Naval</title>
</head>
<body>

	<div id="main">

		<!-- Header -->
		<div id="header">
			<jsp:include page="navigation.jsp" />
		</div>
		<!-- /header -->

		<!-- Tray -->
		<div id="tray">
			<jsp:include page="menu.jsp" />
			<!-- Search -->
			<div id="search" class="box">
				<form action="#" method="get">
					<div class="box">
						<div id="search-input">
							<span class="noscreen">Search:</span><input type="text" size="30"
								name="" value="Search" />
						</div>
						<div id="search-submit">
							<input type="image" src="img/search-submit.gif" value="OK" />
						</div>
					</div>
				</form>
			</div>
			<!-- /search -->

			<hr class="noscreen" />
		</div>
		<!-- /tray -->

		<!-- Promo -->
		<div id="col-top"></div>
		<div id="col" class="box">
			<div>
				<h2 id="slogan">
					<span></span>API Services
				</h2>
				
				<h2>String login(String user,String pass)</h2>
				<p>contra Facebook, retorna un securityToken (string)</p>
				
				<h2>List<String> getUsersByState(String securityToken, String userState)</h2>
				<p>Retorna una lista de usuarios ( [ "nombre.apellido", ... ]), segun el estado que se indica en el parametro "userState"</p>
				Los valores posibles para "userState" son :<br/>
				"ALL" : todos los usuarios logeados en la aplicacion <br/>  
				"AVAILABLE" : los usuarios que estan a la espera de iniciar una partida<br/>
				"NOT_AVAILABLE" : los usuarios que estan jugando una partida<br/>
				
				<h2>String declareWar(String securityToken, String oponent )	</h2>
				<p>"Luego de validar securityToken y participante activo, se crea el warToken.
					Se debe notificar( askWarConfirmation( String warToken, String oponent ) ) al 
					contrincante para ver si acepta jugar, utilizando el warToken.
					return warToken o ""INVALID PARTICIPANT"""</p>

				<h2>String acceptWar(String securityToken, String warToken )</h2>
				<p>Cuando un jugador "A" le declara la guerra a un jugdor "B" el jugador B puede aceptar o rechazar la guerra. 
				   return String: ""VALID"", ""INVALID"".</p>
				
				<h2>String validateFleet(String securityToken, String warToken, String fleet)</h2>
				<p>"ships es un string con la siguiente forma (sin los margenes 0-9, a-j)
					*0123456789
					a0000000000
					b0000000000
					c0000000000
					d0333000000
					e0000000000
					f2000000000
					g2000000000
					h0000000000
					i0000000000
					j4444055555
					Debe haber un barco de 2, 3, 4, 5
					return String: ""VALID"", ""INVALID""</p>
				<h2>String shoot(String securityToken, String warToken, int x, String y)</h2>
				<p>"x, y deben x >= 0 y <= 9, y >= a y <= j (minuscula)
					return String:""WATER"", ""HIT"", ""HIT/SUNK"", ""HIT/SUNK/WIN""
				</p>

      			</div>
		</div>
		<!-- /col -->
		<div id="col-bottom"></div>

		<hr class="noscreen" />



		<!-- 2 columns -->
		<div id="cols2-top"></div>
		<div id="cols2" class="box">

			<!-- Blog -->
			<div id="col-left">

				<div class="title">
					<span class="f-right"><a href="#" class="ico-rss">RSS
							feed</a>
					</span>
					<h4>Blog</h4>
				</div>
				<!-- /title -->

				<ul class="ul-list nomb">
					<li><span class="f-right"><a href="#"
							class="ico-comment">45 comments</a>
					</span> <span class="date">27.09.2008</span> <a href="#" class="article">Lorem
							ipsum dolor sit amet</a>
					</li>
					<li><span class="f-right"><a href="#"
							class="ico-comment">45 comments</a>
					</span> <span class="date">27.09.2008</span> <a href="#" class="article">Lorem
							ipsum dolor sit amet</a>
					</li>
					<li><span class="f-right"><a href="#"
							class="ico-comment">45 comments</a>
					</span> <span class="date">27.09.2008</span> <a href="#" class="article">Lorem
							ipsum dolor sit amet</a>
					</li>
					<li><span class="f-right"><a href="#"
							class="ico-comment">45 comments</a>
					</span> <span class="date">27.09.2008</span> <a href="#" class="article">Lorem
							ipsum dolor sit amet</a>
					</li>
					<li><span class="f-right"><a href="#"
							class="ico-comment">45 comments</a>
					</span> <span class="date">27.09.2008</span> <a href="#" class="article">Lorem
							ipsum dolor sit amet</a>
					</li>
				</ul>

			</div>
			<!-- /col-left -->

			<hr class="noscreen" />

			<!-- Testimonials -->
			<div id="col-right">

				<h4>
					<span>Testimonials</span>
				</h4>

				<div class="box">

					<div class="col-right-img">
						<img src="img/65x65.gif" width="65" height="65" alt="" />
					</div>
					<div class="col-right-text">

						<p>
							Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc
							feugiat. <strong>In a massa.</strong> In feugiat pharetra lacus.
							In non arcu nec libero pharetra rutrum.
						</p>
						<p class="high smaller">
							&ndash; <cite>John Doe, Some Corporation</cite>
						</p>

					</div>
					<!-- /col-right-text -->

				</div>
				<!-- /box -->

			</div>
			<!-- /col-right -->

		</div>
		<!-- /cols2 -->
		<div id="cols2-bottom"></div>

		<hr class="noscreen" />

		<!-- Footer -->
		<div id="footer">

			<!-- Do you want remove this backlinks? Look at www.nuviotemplates.com/payment.php -->
			<p class="f-right">
				<a href="http://www.nuviotemplates.com/">Free web templates</a>
				presented by <a href="http://www.qartin.cz/">QARTIN</a> &ndash; Our
				tip: <a href="http://last-minute.invia.pl">Wakacje</a> <a
					href="http://dovolenka.invia.sk">Dovolenka</a>
			</p>
			<!-- Do you want remove this backlinks? Look at www.nuviotemplates.com/payment.php -->

			<p>
				Copyright &copy;&nbsp;2011 <strong><a href="http://www.globallogic.com/">Globallogic</a>
				</strong>, All Rights Reserved &reg;
			</p>

		</div>
		<!-- /footer -->

	</div>
	<!-- /main -->
</body>
</html>


